﻿using System.Windows.Media.Media3D;

namespace LFSRecord2.Model
{
    public class CompLayerNullMesh : CompLayerMeshBase
    {
        public CompLayerNullMesh()
            : base()
        {
            LayerType = CompLayerTypes.Null;

            NumPoints = 4;
            NumLineIndexes = 8;

            // Set body points
            Points = new Point3D[NumPoints];
            Points[0] = new Point3D();
            Points[1] = new Point3D(100, 0, 0);
            Points[2] = new Point3D(100, 0, 100);
            Points[3] = new Point3D(0, 0, 100);

            // Set body lines
            LineIndexes = new int[NumLineIndexes];
            LineIndexes[0] = 0; LineIndexes[1] = 1;
            LineIndexes[2] = 1; LineIndexes[3] = 2;
            LineIndexes[4] = 2; LineIndexes[5] = 3;
            LineIndexes[6] = 3; LineIndexes[7] = 0;
        }
    }
}
